<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
<title></title>
<script type="text/javascript">
window.onload=function (){
  document.onselectstart=function (){
    alert("不允许选择文本！");
    return false;
  }
}
</script>
</head>

<body>
<p id="demo">
  欢迎来到明日学院官方网站
</p>
</body>
</html>
